import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 考场信息
 */
// 获取全部考场信息
export function getSchoolInfos(params) {
  return get(`${packageName}/pc/examinationRoom/getExaminationRooms`, params)
}
// 获取考场信息列表
export function getExaminationRoomList(params) {
  return get(`${packageName}/pc/examinationRoom/getExaminationRoomList`, params)
}
// 获取考场信息详情
export function getExaminationRoom(params) {
  return get(`${packageName}/pc/examinationRoom/getExaminationRoom`, params)
}
// 删除考场信息
export function delExaminationRoom(params) {
  return del(`${packageName}/pc/examinationRoom/delExaminationRoom`, params)
}
// 保存考场信息
export function saveExaminationRoom(params) {
  return post(`${packageName}/pc/examinationRoom/saveExaminationRoom`, params)
}
/**
 * 考场信息
 */

// 获取考场考次分组列表
export function getExaminationRoomTimesGroupList(params) {
  return get(`${packageName}/pc/examinationRoomTimesGroup/getExaminationRoomTimesGroupList`, params)
}
// 获取考场考次分组
export function getExaminationRoomTimesGroup(params) {
  return get(`${packageName}/pc/examinationRoomTimesGroup/getExaminationRoomTimesGroup`, params)
}
// 删除考场考次分组
export function delExaminationRoomTimesGroup(params) {
  return del(`${packageName}/pc/examinationRoomTimesGroup/delExaminationRoomTimesGroup`, params)
}
// 保存考场考次分组
export function saveExaminationRoomTimesGroup(params) {
  return post(`${packageName}/pc/examinationRoomTimesGroup/saveExaminationRoomTimesGroup`, params)
}
/**
 * 次分组考生
 */

// 获取考场考次分组考生列表
export function getExaminationRoomTimesGroupPlayerList(params) {
  return get(`${packageName}/pc/examinationRoomTimesGroupPlayer/getExaminationRoomTimesGroupPlayerList`, params)
}
// 获取考场考次分组考生
export function getExaminationRoomTimesGroupPlayer(params) {
  return get(`${packageName}/pc/examinationRoomTimesGroupPlayer/getExaminationRoomTimesGroupPlayer`, params)
}
// 删除考场考次分组考生
export function delExaminationRoomTimesGroupPlayer(params) {
  return del(`${packageName}/pc/examinationRoomTimesGroupPlayer/delExaminationRoomTimesGroupPlayer`, params)
}
// 保存考场考次分组考生
export function saveExaminationRoomTimesGroupPlayer(params) {
  return post(`${packageName}/pc/examinationRoomTimesGroupPlayer/saveExaminationRoomTimesGroupPlayer`, params)
}
/**
 * 考场设备信息
 */
// 获取考场设备信息
export function getExaminationRoomDevice(params) {
  return get(`${packageName}/pc/examinationRoomDevice/getExaminationRoomDevice`, params)
}
// 获取全部考场设备列表
export function getExaminationRoomDevices(params) {
  return get(`${packageName}/pc/examinationRoomDevice/getExaminationRoomDevices`, params)
}
// 获取考场设备信息列表
export function getExaminationRoomListDevice(params) {
  return get(`${packageName}/pc/examinationRoomDevice/getExaminationRoomList`, params)
}
// 删除考场设备信息
export function delExaminationRoomDevice(params) {
  return del(`${packageName}/pc/examinationRoomDevice/delExaminationRoomDevice`, params)
}
// 保存考场设备信息
export function saveExaminationRoomDevice(params) {
  return post(`${packageName}/pc/examinationRoomDevice/saveExaminationRoomDevice`, params)
}

/**
 * 工位列表
 */
// 获取全部考场工位列表
export function getExaminationRoomSeats(params) {
  return get(`${packageName}/pc/examinationRoomSeat/getExaminationRoomSeats`, params)
}
// 获取考场工位列表
export function getExaminationRoomSeatList(params) {
  return get(`${packageName}/pc/examinationRoomSeat/getExaminationRoomSeatList`, params)
}

// 获取考场工位
export function getExaminationRoomSeat(params) {
  return get(`${packageName}/pc/examinationRoomSeat/getExaminationRoomSeat`, params)
}
// 删除考场工位
export function delExaminationRoomSeat(params) {
  return del(`${packageName}/pc/examinationRoomSeat/delExaminationRoomSeat`, params)
}
// 保存考场工位
export function saveExaminationRoomSeat(params) {
  return post(`${packageName}/pc/examinationRoomSeat/saveExaminationRoomSeat`, params)
}
/**
 * 考场考次
 */
// 获取全部考场考次列表
export function getExaminationRoomTimess(params) {
  return get(`${packageName}/pc/examinationRoomTimes/getExaminationRoomTimess`, params)
}
// 获取考场考次列表
export function getExaminationRoomTimesList(params) {
  return get(`${packageName}/pc/examinationRoomTimes/getExaminationRoomTimesList`, params)
}
// 获取考场考次
export function getExaminationRoomTimes(params) {
  return get(`${packageName}/pc/examinationRoomTimes/getExaminationRoomTimes`, params)
}
// 删除考场考次
export function delExaminationRoomTimes(params) {
  return del(`${packageName}/pc/examinationRoomTimes/delExaminationRoomTimes`, params)
}
// 保存考场考次
export function saveExaminationRoomTimes(params) {
  return post(`${packageName}/pc/examinationRoomTimes/saveExaminationRoomTimes`, params)
}

/**
 * 专业信息
 */
// 获取全部专业信息
export function getMajorInfos(params) {
  return get(`${packageName}/pc/majorInfo/getMajorInfos`, params)
}
// 获取专业信息列表
export function getMajorInfoList(params) {
  return get(`${packageName}/pc/majorInfo/getMajorInfoList`, params)
}
// 获取专业信息详情
export function getMajorInfo(params) {
  return get(`${packageName}/pc/majorInfo/getMajorInfo`, params)
}
// 删除专业信息
export function delMajorInfo(params) {
  return del(`${packageName}/pc/majorInfo/delMajorInfo`, params)
}
// 保存专业信息
export function saveMajorInfo(params) {
  return post(`${packageName}/pc/majorInfo/saveMajorInfo`, params)
}

/**
 * 班级信息
 */
// 获取全部班级信息
export function getClassInfos(params) {
  return get(`${packageName}/pc/classInfo/getClassInfos`, params)
}
// 获取班级信息列表
export function getClassInfoList(params) {
  return get(`${packageName}/pc/classInfo/getClassInfoList`, params)
}
// 获取班级信息详情
export function getClassInfo(params) {
  return get(`${packageName}/pc/classInfo/getClassInfo`, params)
}
// 删除班级信息
export function delClassInfo(params) {
  return del(`${packageName}/pc/classInfo/delClassInfo`, params)
}
// 保存班级信息
export function saveClassInfo(params) {
  return post(`${packageName}/pc/classInfo/saveClassInfo`, params)
}

/**
 * 教室信息
 */
// 获取全部教室信息
export function getClassroomInfos(params) {
  return get(`${packageName}/pc/classroomInfo/getClassroomInfos`, params)
}
// 获取教室信息列表
export function getClassroomInfoList(params) {
  return get(`${packageName}/pc/classroomInfo/getClassroomInfoList`, params)
}
// 获取教室信息详情
export function getClassroomInfo(params) {
  return get(`${packageName}/pc/classroomInfo/getClassroomInfo`, params)
}
// 删除教室信息
export function delClassroomInfo(params) {
  return del(`${packageName}/pc/classroomInfo/delClassroomInfo`, params)
}
// 保存教室信息
export function saveClassroomInfo(params) {
  return post(`${packageName}/pc/classroomInfo/saveClassroomInfo`, params)
}

/**
 * 楼层信息
 */
// 获取全部楼层信息
export function getFloorInfos(params) {
  return get(`${packageName}/pc/floorInfo/getFloorInfos`, params)
}
// 获取楼层信息列表
export function getFloorInfoList(params) {
  return get(`${packageName}/pc/floorInfo/getFloorInfoList`, params)
}
// 获取楼层信息详情
export function getFloorInfo(params) {
  return get(`${packageName}/pc/floorInfo/getFloorInfo`, params)
}
// 删除楼层信息
export function delFloorInfo(params) {
  return del(`${packageName}/pc/floorInfo/delFloorInfo`, params)
}
// 保存楼层信息
export function saveFloorInfo(params) {
  return post(`${packageName}/pc/floorInfo/saveFloorInfo`, params)
}

// 获取考场信息树
export function getSysUsers(params) {
  return get(`${packageName}/pc/sysUser/getSysUsers`, params)
}

/**
 * 人脸识别
 */
// 获取全部考场门禁设备列表（考场id）
export function examinationRoomFaceDevicegetExaminationRoomDevices(params) {
  return get(`${packageName}/pc/examinationRoomFaceDevice/getExaminationRoomDevices`, params)
}
// 获取考场考场人脸识别设备
export function getExaminationRoomFaceDevice(params) {
  return get(`${packageName}/pc/examinationRoomFaceDevice/getExaminationRoomFaceDevice`, params)
}
// 获取考场考场人脸识别设备列表
export function getExaminationRoomFaceDeviceList(params) {
  return get(`${packageName}/pc/examinationRoomFaceDevice/getExaminationRoomFaceDeviceList`, params)
}
// 删除考场考场人脸识别设备
export function delExaminationRoomFaceDevice(params) {
  return del(`${packageName}/pc/examinationRoomFaceDevice/delExaminationRoomFaceDevice`, params)
}
// 保存考场考场人脸识别设备
export function saveExaminationRoomFaceDevice(params) {
  return post(`${packageName}/pc/examinationRoomFaceDevice/saveExaminationRoomFaceDevice`, params)
}
// 导出考场考次分组考生(考次id)
export function exportExaminationRoomTimesGroupPlayer(params) {
  return post(`${packageName}/pc/examinationRoomTimesGroupPlayer/exportExaminationRoomTimesGroupPlayer`, params)
}

// 获取rfid设备工具表
export function getExaminationRoomRfidTool(params) {
  return get(`${packageName}/pc/examinationRoomRfidTool/getExaminationRoomRfidTool`, params)
}
//获取rfid设备工具
export function getExaminationRoomRfidToolList(params) {
  return get(`${packageName}/pc/examinationRoomRfidTool/getExaminationRoomRfidToolList`, params)
}
//删除rfid设备工具
export function delExaminationRoomRfidTool(params) {
  return del(`${packageName}/pc/examinationRoomRfidTool/delExaminationRoomRfidTool`, params)
}
//保存rfid设备工具
export function saveExaminationRoomRfidTool(params) {
  return post(`${packageName}/pc/examinationRoomRfidTool/saveExaminationRoomRfidTool`, params)
}

// 获取考场人脸设备下rfid设备表
export function getExaminationRoomRfidDevice(params) {
  return get(`${packageName}/pc/examinationRoomRfidDevice/getExaminationRoomRfidDevice`, params)
}
//获取考场人脸设备下rfid设备
export function getExaminationRoomRfidDeviceList(params) {
  return get(`${packageName}/pc/examinationRoomRfidDevice/getExaminationRoomRfidDeviceList`, params)
}
//删除考场人脸设备下rfid设备
export function delExaminationRoomRfidDevice(params) {
  return del(`${packageName}/pc/examinationRoomRfidDevice/delExaminationRoomRfidDevice`, params)
}
//保存考场人脸设备下rfid设备
export function saveExaminationRoomRfidDevice(params) {
  return post(`${packageName}/pc/examinationRoomRfidDevice/saveExaminationRoomRfidDevice`, params)
}

//获取考场人脸设备下rfid设备
export function getExaminationRoomRfidDevices(params) {
  return get(`${packageName}/pc/examinationRoomDevice/getExaminationRoomRfidDevices`, params)
}

//获取考场考次分组成绩单（分组id）
export function getExaminationRoomTimesGroupScore(params) {
  return get(`${packageName}/pc/examinationRoomTimesGroup/getExaminationRoomTimesGroupScore`, params)
}
//一键读码
export function oneClickRead(params) {
  return post(`${packageName}/pc/examinationRoomRfidTool/oneClickRead`, params)
}
//关闭链接
export function closeClick(params) {
  return post(`${packageName}/pc/examinationRoomRfidTool/closeClick`, params)
}
//开启链接
export function onClick(params) {
  return post(`${packageName}/pc/examinationRoomRfidTool/onClick`, params)
}
